package com.yuanchu.goods.controller;

import com.yuanchu.common.utils.R;
import com.yuanchu.goods.entity.YoshopDeliveryEntity;
import com.yuanchu.goods.service.YoshopDeliveryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * 配送模板主表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:23
 */
@Api(tags = "配送模板主表接口 管理", description = "配送模板主表接口 管理")
@RestController
@RequestMapping("delivery")
public class YoshopDeliveryController {

    @Resource
    private YoshopDeliveryService yoshopDeliveryService;

    /**
     * 配送列表
     */
    @ApiOperation("配送信息查询接口")
    @GetMapping("/all")
    public R list(@RequestParam(required = false) Map<String, Object> params) {
        List<YoshopDeliveryEntity> list = yoshopDeliveryService.queryGoodsDelivery(params);

        return R.ok().put("data", list);
    }


}
